<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>09_IIFE-作用</title>
    </head>
    <body>
        <script>
            // 在实际的企业级开发中  拒绝用全局变量

            var name = 'zs';

            var name = 'ls';

            console.log(name);
        </script>
    </body>
</html>